// Main.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "FrameworkPublic.h"
#include "BundleContextImp.h"
#include "FrameworkFactoryImp.h"
#include "Bundle.h"
#include "Framework.h"

USING_NAME_SPACE_OSGI

int _tmain(int argc, _TCHAR* argv[])
{
	FrameworkFactoryImp frameworkFactory;
	std::map<std::string,void*> configuration;
	Framework* framework = frameworkFactory.newFramework( configuration );
	if( !framework )
		return -1;

	framework->init();
	BundleContext* context = framework->getBundleContext();
	context->installBundle( "TestBundle" );
	framework->start();
	framework->waitForStop(1000);
	return 0;
}

